home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
F1 Licenseware
/
F1 Licenseware - Volume 1.iso
/
disks
/
050a.dms
/
050a.adf
/
EXAMPLE_PROGRAMS
/
example14_1.AMOS
/
example14_1.amosSourceCode
Wrap
AMOS Source Code
|
1992-02-26
|
1KB
|
70 lines
'
'====================
Rem example 14_1.Amos
'====================
'
Rem playing samples
Rem load in a previously created sample bank
Rem automatically loaded into bank 5 the default bank for samples.
'-----------------------------------------------------------------
Load "df0:samples/samples.abk"
Paper 0 : Cls 0
Rem show what is happening
'-------------------------
Print "Playing Sample one"
Rem play sample 1
Sam Play 1
Rem Wait for it to stop playing
'------------------------------
Wait 100
Rem and so on
'------------
Print "Playing Sample two"
Sam Play 2
Wait 100
Print "Playing Sample three"
Sam Play 3
Wait 50
Rem play this sample in a loop
'-----------------------------
Print "Playing Sample four looped, press a key."
Rem turn looping on
Sam Loop On
Rem play it
'----------
Sam Play 4
Rem wait for user to press a key
'--------------------------------
Clear Key : Wait Key
Rem turn looping off
'-------------------
Sam Loop Off
Rem yes it really is that simple!
Rem why not get some samples and make your own sample bank up and load that
Rem into this program?
'-------------------------------------------------------------
Edit